# file=open('./1.txt','r',encoding='utf-8')
# print(file.read())
# file.close()

import os.path
# with open('./1.txt', 'r', encoding='utf-8') as file:
#     print(file.read())

# with open('./1.txt', 'r', encoding='utf-8') as file:
#     print(file.read(2))
#     print(file.read(1))

# with open('./1.txt', 'r', encoding='utf-8') as file:
#     print(file.readline())
#     print(file.readline())
#     print(file.readline())
# #     print(file.readline())
# with open('./1.txt', 'r', encoding='utf-8') as file:
#     # list=file.readlines()
#     # print(list)
# with open('./1.txt', 'r', encoding='utf-8') as file:
#     while True:
#         line = file.readline()
#         if not line:
#             break
#         print(line.strip())

# list = ('a','b','c')
# with open('./2.txt',mode='a',encoding='utf-8') as file:
    # file.write('hello word')
    # file.write('\n')
    # file.write('我的国家')
    # file.write('\n')
    # file.writelines(list)import os
# from os import makedirs
# with open('./a.png', 'rb') as file:
#     with open('D:/2222D/20251106.png', 'wb') as file2:
#         while True:
#             data = file.read(1024)
#             if not data:
#                 break
#             file2.write(data)
#
# Flag = os.path.exists('D:/2222D/20251106.png')
# Flag2 = os.path.exists('D:/2222Ddd/20251106.png')
# print(Flag)
# print(Flag2)
# os.makedirs('D:/2222Ddd/20251106.png')
# Flags= os.listdir('D:/2222Ddd/20251106.png')
# print(Flags)
#
# os.remove('./2.txt')# print(os.getcwd())
# print(os.listdir(','))
for root, dirs, files in os.walk("./"):
    print(root)
    print('--------------------------------------------------1')
    print(dirs)
    print('--------------------------------------------------2')
    print(files)
    print('----------------------------------------')

